import { ref } from 'vue';
import { markList as markListData, markToolList as markToolListData } from '@/utils/commonList';

export default function useMarkToolItem() {

    const markList = ref([...markListData]);
    const markVisibile = ref(true);
    const markToolRef = ref();

    const markToolList = ref([...markToolListData]);

    const handleMarkClick = (visibile: boolean) => {
        markVisibile.value = !visibile;
    };

    return {
        markList,
        markVisibile,
        markToolRef,
        handleMarkClick,
        markToolList
    };
};